//
//  LKSportPolyline.h
//  SportDemo
//
//  Created by Lukj on 2017/4/23.
//  Copyright © 2017年 lukj. All rights reserved.
//

#import <MAMapKit/MAMapKit.h>

@interface LKSportPolyline : MAPolyline

//  折线平均速度 km/h
@property (nonatomic, assign, readonly) CGFloat speed;
//  折线的距离 km
@property (nonatomic, assign, readonly) CGFloat distance;
//  折线的时长 s
@property (nonatomic, assign, readonly) CGFloat time;
//  折线的颜色
@property (nonatomic, strong, readonly) UIColor *polylineColor;

/**
 折线初始化

 @param source 起点位置对象
 @param dest 终点位置对象
 @return 折线模型
 */
+ (instancetype)polylineWithSourceLocation:(CLLocation *)source andWithDestLocation:(CLLocation *)dest;

@end
